package cn.touna.jss.modules.custom.carmodel.mapper;

import cn.touna.jss.modules.custom.carmodel.entity.Car300BrandEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Car300BrandEntityMapper {

    int insert(Car300BrandEntity record);

    int updateByBrandId(Car300BrandEntity record);

    List<Car300BrandEntity> selectByPage(
            @Param("pageSize") int pageSize,
            @Param("offset") int offset,
            @Param("brandName") String brandName
    );

    int selectCount(@Param("brandName") String brandName);

    /**
     * 不分页：查询车品牌
     * @param car300BrandEntity
     * @return
     */
    List<Car300BrandEntity> queryAll(Car300BrandEntity car300BrandEntity);

}